LassoScript Utility
Basics Browse Detail

[PDF_Doc->Add]

Tag Link [PDF_Doc->Add] Category PDF
Type Member Source Available Yes
Support Preferred Version 7.0
Change Updated Data Source Any
Output Type None Security None
Implementation LJAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

Adds a PDF content object to a document. This can be used to add [PDF_Text], [PDF_List], [PDF_Image], [PDF_Table], [PDF_List], or [PDF_BarCode] objects.

The object is added to the flow of the page by default. Positioning information may be supplied via -Top and -Left parameters. A -Rotate parameter can be used to rotate inserted text. The degrees are measured counter-clockwise from the horizontal.

[PDF_Doc->DrawText] may also be used for positioning text on a page.

Syntax

[$PDF_Doc->(Add: PDF_Text Variable)]
[$PDF_Doc->(Add: PDF_Table Variable)]
[$PDF_Doc->(Add: PDF_List Variable)]
[$PDF_Doc->(Add: PDF_Image Variable, -Top=Integer, -Left=Integer)]
[$PDF_Doc->(Add: PDF_Barcode Variable, -Top=Integer, -Left=Integer)]

Parameters

Required Parameters
[PDF_...] Variable The [PDF_Text], [PDF_List], [PDF_Image], [PDF_Table], or [PDF_BarCode] object to be added to the PDF file.
Optional Parameters
-Align Sets the alignment of the object in the page ('Left', 'Center', or 'Right'). Defaults to 'Left'. Works only for [PDF_Image] and [PDF_BarCode] objects (text alignment is achieved via [PDF_Text] object parameters).
-Wrap Keyword parameter specifies that text should flow around the embedded object. Relevant for image, table, and barcode objects. Optional.
-Left Specifies the placement of a [PDF_Image] or [PDF_Barcode] object relative to the left side of the document. Requires a decimal value, which is the placement offset in points. Optional.
-Top Specifies the placement of a [PDF_Image] or [PDF_Barcode] object relative to the top of the document. Requires a decimal value, which is the placement offset in points. Optional.
-Height Scales the object to the specified height. Requires a decimal value which is the desired object height in points. Works only for [PDF_Image] and [PDF_BarCode] objects.
-Width Scales the object to the specified width. Requires a decimal value which is the desired object width in points. Works only for [PDF_Image] and [PDF _BarCode] objects.
-Rotate Inserted text can be rotated using this parameter. Degrees are measured counter-clockwise from the horizontal.

Change Notes

The -Rotate parameter was added in Lasso 8.5.5.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Related Tags

Category Tags

Substitution
[PDF_Barcode]
[PDF_Color]
[PDF_Font]
[PDF_Image]
[PDF_List]
[PDF_Read]
[PDF_Table]
[PDF_Text]
Process
[PDF_Serve]
Member
[PDF_Barcode->GenerateChecksum]
[PDF_Barcode->GetBarHeight]
[PDF_Barcode->GetBarMultiplier]
[PDF_Barcode->GetBarWidth]
[PDF_Barcode->GetBaseline]
[PDF_Barcode->GetCode]
[PDF_Barcode->GetFont]
[PDF_Barcode->GetSize]
[PDF_Barcode->GetTextAlignment]
[PDF_Barcode->GetTextSize]
[PDF_Barcode->GetType]
[PDF_Barcode->SetBarHeight]
[PDF_Barcode->SetBarMultiplier]
[PDF_Barcode->SetBarWidth]
[PDF_Barcode->SetBaseline]
[PDF_Barcode->SetCode]
[PDF_Barcode->SetFont]
[PDF_Barcode->SetGenerateChecksum]
[PDF_Barcode->SetShowChecksum]
[PDF_Barcode->SetTextAlignment]
[PDF_Barcode->SetTextSize]
[PDF_Barcode->ShowChecksum]
[PDF_Barcode->ShowCode39StartStop]
[PDF_Barcode->ShowEANGuardBars]
[PDF_Font->GetColor]
[PDF_Font->GetEncoding]
[PDF_Font->GetFace]
[PDF_Font->GetFullFontName]
[PDF_Font->GetPSFontName]
[PDF_Font->GetSize]
[PDF_Font->GetSupportedEncodings]
[PDF_Font->IsTrueType]
[PDF_Font->SetColor]
[PDF_Font->SetEncoding]
[PDF_Font->SetFace]
[PDF_Font->SetSize]
[PDF_Font->SetUnderline]
[PDF_Font->TextWidth]
[PDF_List->Add]
[PDF_Read->AddJavaScript]
[PDF_Read->ExportFDF]
[PDF_Read->FieldNames]
[PDF_Read->FieldType]
[PDF_Read->FieldValue]
[PDF_Read->GetHeaders]
[PDF_Read->ImportFDF]
[PDF_Read->JavaScript]
[PDF_Read->PageCount]
[PDF_Read->PageSize]
[PDF_Read->Save]
[PDF_Read->SetFieldValue]
[PDF_Read->SetPageRange]
[PDF_Table->Add]
[PDF_Table->GetAbsWidth]
[PDF_Table->GetAlignment]
[PDF_Table->GetBorderColor]
[PDF_Table->GetBorderWidth]
[PDF_Table->GetColumnCount]
[PDF_Table->GetPadding]
[PDF_Table->GetRowCount]
[PDF_Table->GetSpacing]
[PDF_Table->Insert]
[PDF_Table->Remove]
[PDF_Table->SetAlignment]
[PDF_Table->SetBorderColor]
[PDF_Table->SetBorderWidth]
[PDF_Table->SetPadding]
[PDF_Table->SetSpacing]
[PDF_Text->Add]